package com.boot.springboot.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luowenjie
 * @since 2021/8/30 19:06
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping(value = "/{text}", method = RequestMethod.GET)
    public String hello(@PathVariable("text") String text) {
        return text;
    }

}
